package com.hc.dao;

import com.hc.bean.Functions;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@MapperScan
public interface FunctionsDao {
    /*更加管理员id查询管理员的权限*/
    @Select("SELECT * FROM functions WHERE id in (SELECT fid FROM powers WHERE aid=#{aid})")
    public List<Functions> functionList(Integer aid);
}
